<?php echo $this->fetch('header.html'); ?>
<script type="text/javascript" src="<?php echo SITE_URL."/includes/libraries/javascript/" . 'datePicker/WdatePicker.js'; ?>" charset="utf-8"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("#choosedpl").change(function () {
  if ($(this).get(0).selectedIndex != 0) {
	$("#yudan_text").val($(this).val()).focus();
	$(this).get(0).selectedIndex = 0;
  }
});
});
</script>
<style>
.kdorder_add {background:#dddddd}
.kdorder_add td{padding:8px; background:#FFF}
.kdorder_add .title_h1 {font-size:14px; color:#333; background:#f0f7ff; font-family:'Microsoft Yahei'; width:150px;}
.kdorder_add .select_class {border: 1px #CCC solid;height: 30px;border-radius:2px}
.inputBorder{border: 1px #CCC solid;height: 20px;line-height: 20px;padding: 4px 8px; width:280px}
.botton_submit {border:0;background:#ed5736;height:31px;width:100px;text-align:center;line-height:31px;font-family:"Microsoft YaHei";font-size:14px;color:#fff;cursor:pointer;border-radius:4px; margin-right:10px}
</style>
<div id="rightTop">
  <ul class="subnav">
     <?php if ($this->_var['order_info']['order_id']): ?><li><a class="btn1" href="index.php?app=kd_wuliu&act=order&order_id=<?php echo $this->_var['order_info']['order_id']; ?>">该物流列表</a></li><?php endif; ?>
     <li><a class="btn0" href="javascript:void()">添加物流</a></li>
  </ul>
</div>
<form action="" method="post" id="form_box">
<table cellspacing="1" width="100%" class="kdorder_add">
  <tr><td colspan="2" style="padding:12px 8px;background:#ffffe5">重要提示：物流信息与用户前台查看同步更新，请快件到达时再录入物流。</td></tr>
  <tr>
    <td align="right" class="title_h1">订单编号：</td>
    <td><?php if ($this->_var['order_info']['order_sn']): ?><?php echo $this->_var['order_info']['order_sn']; ?><input type="hidden" id="order_id" name="order_id" class="inputBorder" value="<?php echo $this->_var['order_info']['order_id']; ?>"/><?php else: ?>无主录入<?php endif; ?></td>
    </tr>
  <tr>
      <td align="right" class="title_h1">运单号：</td>
      <td>
      <?php if ($this->_var['wuliu']['yundanhao']): ?>
      <?php echo $this->_var['order_info']['yundanhao']; ?>&nbsp;&nbsp;<a href="index.php?app=kd_order&act=edit&order_id=<?php echo $this->_var['order_info']['order_id']; ?>#mod_yundanhao" target="_blank" style="color:#00F">修改运单号</a>
      <input type="hidden" name="yundanhao_old" class="inputBorder" value="<?php echo $this->_var['order_info']['yundanhao']; ?>"/>
      <?php else: ?>
      <input type="text" id="yundanhao" name="yundanhao" class="inputBorder" value="<?php echo $this->_var['order_info']['yundanhao']; ?>"/>
      <font color="#999999">新添加的运单号都会同步更新到运单库</font>
      <?php endif; ?></td>
    </tr>
  <tr>
    <td align="right" class="title_h1">物流跟踪信息：</td>
    <td><input type="text" id="yudan_text" name="yudan_text" class="inputBorder" value="<?php echo $this->_var['wuliu']['yudan_text']; ?>"/>&nbsp;
    <select id="choosedpl" class="select_class">
	<option value="">快捷物流菜单</option>
    <?php $_from = $this->_var['choos_wuliu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
    foreach ($_from AS $this->_var['list']):
?>
    <option value="<?php echo $this->_var['list']; ?>"><?php echo $this->_var['list']; ?></option>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </select>
    </td>
  </tr>
  <tr>
    <td align="right" class="title_h1">管理员备注：</td>
    <td><textarea name="notes" class="inputBorder" id="notes" style="width:380px;height:40px;font-size:12px" placeholder="管理备注不会在前台物流显示，只方便管理查看操作记录"><?php echo $this->_var['wuliu']['notes']; ?></textarea></td>
  </tr>
  <tr>
    <td align="right" class="title_h1">添加时间：</td>
    <td><input type="text" id="addtime" name="addtime" class="inputBorder" value="<?php echo local_date("Y-m-d H:i:s",$this->_var['wuliu']['addtime']); ?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/> <font color="#999999">注意：修改时间要严格按照时间格式修改</font></td>
  </tr>
  <tr>
    <td align="right" class="title_h1">&nbsp;</td>
    <td>
    <input type="submit" name="imgButton" class="botton_submit" value="<?php if ($this->_var['order_info']['order_id']): ?>修改<?php else: ?>添加<?php endif; ?>物流"/>
    <?php if ($_GET['iframe'] != '1'): ?><input type="button" name="imgButton" class="botton_submit" value="返回一页" onclick="history.go(-1)" style="background:#999"/><?php endif; ?>
    </td>
  </tr>
</table>
</form>
<?php echo $this->fetch('footer.html'); ?>